class CreateStockInfos < ActiveRecord::Migration
  def change
    create_table :stock_infos do |t|
      t.string :symbol
      t.string :code
      t.string :name
      t.float :trade, limit: 53
      t.float :per, limit: 53
      t.float :pb, limit: 53
      t.float :mktcap, limit: 53

      t.timestamps null: false
    end
    add_index :stock_infos, :symbol, unique: true
  end
end
